package com.cn.wanxi.util;

import com.cn.wanxi.model.CompanyModel;
import com.cn.wanxi.model.NavModel;
import com.cn.wanxi.service.CompanyService;
import com.cn.wanxi.service.NavService;

import javax.servlet.http.HttpServletRequest;

public class TopFootSetData {
    public static void topFootData(HttpServletRequest req) {
        CompanyService companyService = new CompanyService();
        CompanyModel companyModel = companyService.getCompanyModelForHomePage();
//        companyModel.setPhone("fasdfasd");
//        companyModel.setLogo("../img/logo_g0yv.jpg");
        req.setAttribute("companyModel", companyModel);
        NavService navService = new NavService();
        NavModel[] navModels = navService.getNavModels();
        req.setAttribute("navModels", navModels);
    }
}
